home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Gamer Resource Kit / Hardcore Gamer Resource Kit - Disc 2.iso / Utils / UNIX / UNZIP520 / NOVELL / MAKEFILE.WAT
Text File  |  1996-03-30  |  5KB  |  139 lines

  1. #------------------------------------------------------------------------------
  2. # Makefile for UnZip 5.2 and later                       Mark Wright and others
  3. # Version:  Watcom C                                                  31 Mar 96
  4. #------------------------------------------------------------------------------
  5.  
  6. # NOTE:  this is a hacked-up version of an ancient (1993) makefile.  It will
  7. #   not work without modifications to the UnZip 5.2 sources.  This makefile is
  8. #   (for now) included only for completeness and as a starting point for a real
  9. #   Novell Netware NLM port.  (This makefile was intended for Netware 3.11.)
  10.  
  11.  
  12.  
  13. # Commands to execute before making any target
  14. # Set environment variables for compiler
  15. .BEFORE
  16.     @set inc386=\watcom\novh
  17.     @set wcg386=\watcom\binp\wcl386.exe
  18.  
  19. # Macro definitions
  20. NLMNAME = unzip
  21. DESCRIPTION = unzip utility
  22. VERSION = 0.50
  23. COPYRIGHT = Copyright (C) 1990-1996 Info-ZIP (zip-bugs@wkuvx1.wku.edu).
  24. SCREENNAME = Info-ZIP's UnZip Utility
  25. CLIBIMP = \watcom\novi\clib.imp
  26. OBJFILE = $NLMNAME.obj
  27. PRELUDE = \watcom\novi\prelude.obj
  28.  
  29. # Compile switches
  30. # d2    include full symbolic debugging information
  31. # 3s    generate 386 instructions, use stack-based argument pasing conventions
  32. # zdp   allows DS register to "peg" it to DGROUP
  33. # zq    "quiet" mode
  34. # NLM   produce Novell Loadable Module
  35. # DEBUG include debug info
  36.  
  37. # COMPILE = wcc386 /zq /d2 /3s /zdp /w4 /DNLM
  38. COMPILE = wcc386 /zq /d2 /3s /zdp /w4 /DNLM $(LOCAL_UNZIP)
  39. LINK = wlink
  40. DESTDIR = target
  41.  
  42. # All .obj files implicitly depend on .c files
  43. .c.obj :
  44.    @echo Compiling $[*.c
  45.    @$COMPILE $[*.c
  46.  
  47.  
  48. UNZIP_H = unzip.h unzpriv.h globals.h msdos\doscfg.h
  49.  
  50. crc32.obj:      crc32.c $(UNZIP_H) zip.h
  51. crctab.obj:     crctab.c $(UNZIP_H) zip.h
  52. crypt.obj:      crypt.c $(UNZIP_H) crypt.h ttyio.h zip.h
  53. envargs.obj:    envargs.c $(UNZIP_H)
  54. explode.obj:    explode.c $(UNZIP_H)
  55. extract.obj:    extract.c $(UNZIP_H) crypt.h
  56. fileio.obj:     fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.h
  57. globals.obj:    globals.c $(UNZIP_H)
  58. inflate.obj:    inflate.c inflate.h $(UNZIP_H)
  59. list.obj:       list.c $(UNZIP_H)
  60. match.obj:      match.c $(UNZIP_H)
  61. process.obj:    process.c $(UNZIP_H)
  62. ttyio.obj:      ttyio.c $(UNZIP_H) crypt.h ttyio.h zip.h
  63. unreduce.obj:   unreduce.c $(UNZIP_H)
  64. unshrink.obj:   unshrink.c $(UNZIP_H)
  65. unzip.obj:      unzip.c $(UNZIP_H) crypt.h version.h consts.h
  66. zipinfo.obj:    zipinfo.c $(UNZIP_H)
  67.  
  68. # individual dependencies and action rules:
  69. #crc_i86.obj:    msdos\crc_i86.asm
  70. #    $(AS) $(ASFLAGS) -D$(ASUNMODEL) msdos\crc_i86.asm, $@;
  71.  
  72. # originally used os2.c:  ???
  73. msdos.obj:      msdos\msdos.c $(UNZIP_H)
  74.     $(CC) -c -A$(UNMODEL) $(CFLAGS) msdos\msdos.c
  75.  
  76.  
  77. OBJ01 = unzip.obj
  78. OBJ02 = crc32.obj
  79. OBJ03 = crctab.obj
  80. OBJ04 = crypt.obj
  81. OBJ05 = envargs.obj
  82. OBJ06 = explode.obj
  83. OBJ07 = extract.obj
  84. OBJ08 = fileio.obj
  85. OBJ09 = globals.obj
  86. OBJ10 = inflate.obj
  87. OBJ11 = list.obj
  88. OBJ12 = match.obj
  89. OBJ13 = process.obj
  90. OBJ14 = ttyio.obj
  91. OBJ15 = unreduce.obj
  92. OBJ16 = unshrink.obj
  93. OBJ17 = zipinfo.obj
  94. OBJ18 = msdos.obj
  95. #OBJ19 = $(ASMOBJS)
  96. OBJS = $OBJFILE $OBJ01 $OBJ02 $OBJ03 $OBJ04 $OBJ05 $OBJ06 $OBJ07 $OBJ08 \
  97.     $OBJ09 $OBJ10 $OBJ11 $OBJ12 $OBJ13 $OBJ14 $OBJ15 $OBJ16 $OBJ17 \
  98.     $OBJ18
  99.  
  100.  
  101. # If .obj or .lnk files are modified, link new .nlm and maybe copy to DESTDIR
  102. $NLMNAME.nlm : $OBJS
  103.    @echo Linking...
  104.    @$LINK @$NLMNAME
  105. #   @echo Copying $[*.nlm to $DESTDIR
  106. #   @copy $NLMNAME.nlm $DESTDIR
  107.  
  108.  
  109. # If makefile is modified, create new linker option file
  110. $NLMNAME.lnk : $NLMNAME.mak
  111.    @echo FORMAT   NOVELL NLM    '$DESCRIPTION'     >$NLMNAME.lnk
  112.    @echo OPTION   THREADNAME    '$NLMNAME'    >>$NLMNAME.lnk
  113.    @echo OPTION   SCREENNAME '$SCREENNAME'    >>$NLMNAME.lnk
  114.    @echo NAME $NLMNAME                >>$NLMNAME.lnk
  115.    @echo OPTION   VERSION=$VERSION        >>$NLMNAME.lnk
  116.    @echo OPTION   COPYRIGHT '$COPYRIGHT'    >>$NLMNAME.lnk
  117.    @echo DEBUG    NOVELL                        >>$NLMNAME.lnk
  118.    @echo DEBUG    ALL                           >>$NLMNAME.lnk
  119.    @echo OPTION   NODEFAULTLIBS            >>$NLMNAME.lnk
  120.    @echo OPTION   DOSSEG            >>$NLMNAME.lnk
  121.    @echo OPTION   STACK=40000            >>$NLMNAME.lnk
  122.    @echo OPTION   CASEEXACT            >>$NLMNAME.lnk
  123.    @echo OPTION   PSEUDOPREEMPTION        >>$NLMNAME.lnk
  124.    @echo OPTION   MAP                >>$NLMNAME.lnk
  125.    @echo FILE $PRELUDE                >>$NLMNAME.lnk
  126.    @echo FILE $OBJFILE                >>$NLMNAME.lnk
  127.    @echo FILE $OBJ2                >>$NLMNAME.lnk
  128.    @echo FILE $OBJ3                >>$NLMNAME.lnk
  129.    @echo FILE $OBJ4                >>$NLMNAME.lnk
  130.    @echo FILE $OBJ5                >>$NLMNAME.lnk
  131.    @echo FILE $OBJ6                >>$NLMNAME.lnk
  132.    @echo FILE $OBJ7                >>$NLMNAME.lnk
  133.    @echo FILE $OBJ8                >>$NLMNAME.lnk
  134.    @echo FILE $OBJ9                >>$NLMNAME.lnk
  135.    @echo FILE $OBJ10                >>$NLMNAME.lnk
  136.    @echo FILE $OBJ11                >>$NLMNAME.lnk
  137.    @echo MODULE   clib                >>$NLMNAME.lnk
  138.    @echo IMPORT   @$CLIBIMP            >>$NLMNAME.lnk
  139.